package com.xlr.excel.util;

import com.xlr.excel.entity.SourseVehicle;
import com.xlr.excel.queue.QueueHander;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author: xlr
 * @Date: Created in 下午7:38 2019/3/3
 */
@Component
public class QueueProduct {

    private static QueueProduct queueProduct;

    @Autowired
    QueueHander queueHander;

    @PostConstruct
    public void init(){
        queueProduct = this;
        queueProduct.queueHander = queueHander;
    }

    public static void sendQueue(SourseVehicle sv){
        queueProduct.queueHander.sendQueue( sv );
    }
}
